OstreeMutableTree: add _remove method
authorRobert McQueen <rob@endlessm.com>
Tue, 18 Sep 2018 14:46:24 +0000 (15:46 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 20 Sep 2018 17:49:55 +0000 (17:49 +0000)
commitb32c9e0df9ea402bcae1fb23f56467311aa8d66e
tree81aa4f2dc9986a6c425340acbdba7f096c4d615f
parent6b37fe831076f368f0d5ee62d6fc262e50f265cd
OstreeMutableTree: add _remove method

There is no API method to remove a file or subdirectory from a MutableTree
besides directly manipulating the GHashTable returned by _get_files or
_get_subdirs. This isn't possible from an introspection binding that transforms
the returned GHashTable, and may also leave the tree checksum in an invalid
state. Introduce a new method so that removing files or subdirectories is
safe, and possible from bindings.

Closes: #1724
Approved by: jlebon
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-mutable-tree.c
src/libostree/ostree-mutable-tree.h